@import "../../../common/common.less";

@FAgentBgColor: #F5F7F8;
@FAgentHoverBgColor: rgba(245, 247, 248, 0.6);
@rateBorderColor: rgba(187, 185, 199, 0.19);
.GWarningSet {
  .warnItem {
    margin-bottom: 12px;

    .container {
      padding: 10px;

      .form {
        display: flex;
        flex-wrap: wrap;

        .form-item {
          display: flex;
          align-items: center;
          width: 33.33%;
          padding-right: 20px;
          margin-bottom: 12px;

          .form-item-name {
            flex: 0 0 100px;
          }

          .form-item-val {
            flex: 1;

          }
        }

        .btnArea {
          justify-content: flex-end;
          padding: 0;

          .zy-btn {
            margin-left: 12px;
          }
        }
      }

      .tips {
        padding-left: 20px;
        font-size: 14px;
        color: @allWarringColor;
      }

      .pageTitle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        margin-bottom: 10px;
        height: 40px;

        .title {
          line-height: 20px;
          font-size: 16px;
          font-weight: bold;
        }
      }

      .pageTitle::after {
        content: '';
        position: absolute;
        top: 9px;
        bottom: 9px;
        left: -12px;
        width: 4px;
        background: @allWarringColor;
      }

      .tr {
        display: flex;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid @rateBorderColor;

        &.head {
          color: @fontGrayColor;

          .interval, .color, .dubious, .early_type, .police_ids {
            // border-right: 1px solid @rateBorderColor;
          }
        }

        &:nth-child(2n) {
          background: @FAgentBgColor;
        }

        &:hover {
          background: @FAgentHoverBgColor;
        }

        .index {
          flex: 0 0 48px;
          display: flex;
          justify-content: center;
          align-items: center;
          border-right: 1px solid @rateBorderColor;
        }


        .interval, .color, .dubious, .early_type, .police_ids {
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 0 12px;

          &.interval {
            flex: 1;

            .unit {
              margin: 4px;
              font-size: 12px;
              flex: 0 0 40px;
            }
          }

          &.color {
            flex: 0 0 90px;
          }

          &.dubious {
            flex: 0 0 130px;
          }

          &.early_type {
            flex: 0 0 200px;

            .el-checkbox {
              margin-right: 20px;
            }
          }

          &.police_ids {
            flex: 0 0 260px;
          }

        }

        .btnArea {
          flex: 0 0 160px;
          display: flex;
          align-items: center;

          .delBtn {
            margin-left: 8px;
          }
        }

      }

      .btn-box {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin: 12px 0;

        .zy-btn {
          margin-left: 12px;
        }
      }
    }
  }
}
